package com.example.nft.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.nft.dao.Tutu3Mapper;
import com.example.nft.entity.Tutu2;
import com.example.nft.entity.Tutu3;
import com.example.nft.service.Tutu3Service;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Example;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cache.annotation.CachePut;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;


/**
 * (Tutu3)表控制层
 *
 * @author makejava
 * @since 2022-04-17 01:41:42
 */
@RestController
@RequestMapping("tutu3")
public class Tutu3Controller {
    @Resource
    public Tutu3Service tutu3Service;

    @ApiOperation(value = "查询")
    @GetMapping("/select")
    public List<Tutu3> selectAll(String fenqu, String name){
        if (fenqu==null&&name==null){
            return tutu3Service.selectAll();
        }
        return tutu3Service.selectAll(fenqu,name);
    }



    @ApiOperation(value = "插入")
    @GetMapping("/testDemo")
    public String testDemo() throws ParseException {
        return tutu3Service.insert();
    }







}

